import os
from fastapi.responses import FileResponse
from fastapi import APIRouter

router =APIRouter(tags=['Test'])

@router.get('/test',response_class=FileResponse)
def get():
    page_path=os.path.join(os.environ['base_dir'],'test.html')
    return FileResponse(page_path)